package com.hdoit.apollo.web.shop.modelconfig;

import com.hdoit.apollo.web.cargo.providers.CargoProvider;
import com.tennetcn.web.component.attribute.DisplayNameAttribute;
import com.tennetcn.web.component.attribute.DropDownListAttribute;
import com.tennetcn.web.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年05月22日 14:18:01
 * @comment
 */
public class SupplyCargoConfig extends ModelMetadataAttributeConfiguration{
    public SupplyCargoConfig(){
        this.setProperty("cargoId")
            .hasAttribute(new DisplayNameAttribute("商品"))
            .hasAttribute(new DropDownListAttribute(new CargoProvider()));

        this.setProperty("supplierId")
            .hasAttribute(new DisplayNameAttribute("供应商"));

        this.setProperty("shopId")
            .hasAttribute(new DisplayNameAttribute("门店"));

        this.setProperty("comment")
            .hasAttribute(new DisplayNameAttribute("备注"));

    }
}